package com.loong.shop.common.backend.param;

import com.loong.common.validator.group.CommonInsert;
import com.loong.common.validator.group.CommonUpdate;
import com.loong.common.validator.group.CommonValidate;
import lombok.*;

import javax.validation.constraints.NotNull;
import java.util.Date;

@Builder
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class GoodsSizeValueParam {

    /**
     * 规格值id
     */
    @NotNull(message = "更新时规格值id不能为空",groups = {CommonUpdate.class})
    private Long id;
    /**
     * 规格名称id
     */
    @NotNull(message = "新增时规格名称id不能为空",groups = { CommonInsert.class})
    private Long goodsSpecificationId;

    /**
     * 规格对应的值
     */
    @NotNull(message = "新增时规格值不能为空",groups = {CommonInsert.class})
    private String goodsSpecificationValue;

    /**
     * 创建时间
     */
    // @NotNull(message = "新增时创建时间不能为空",groups = {CommonInsert.class})
    private Date createTime;

    /**
     * 更新时间
     */
    //  @NotNull(message = "更新时更新时间不能为空",groups = {CommonUpdate.class})
    private Date lastUpdateTime;
}